04. Download the Code

Visualizer Preferences Code

The code for this app can be found in the Lesson06-Visualizer-Preferences folder of the Toy App Repository.

If you need to a refresher on how the code is organized, please refer the concept where we introduced the code flow.

Once you're done opening the code in Android Studio, answer the question below.

Question 1

Check the following choices that would make just the treble triangle and bass circle visible, in red.

SOLUTION:
  • setShowBass(true);
  • setShowTreble(true)
  • setShowMid(false)
  • setColor(getString(R.string.pref_color_red_value))